package com.snailxr.base.task.domain.jx;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 行政审批元数据实体类
 * @author luoshijian
 *
 */
@Document(collection="xzspJx")//数据库集合为xzspJx
@Scope("singleton")//单例模式
public class XZSP {
	/*
	法人办事元数据字段
 	英文名			中文名
	sxmc			事项名称
	slfw			受理范围
	bljg			办理机构
	jdtsdh			监督投诉电话
	sltj			受理条件
	blcx			办理程序
	lct				流程图
	blsx			办理时限
	sfyj			收费依据
	sfbz			收费标准
	bgxz			表格下载
	wsbl			网上办理
	wscx			网上查询
	zxdh			咨询电话
	blcs			到窗口办理次数
	itemId			itemId
	ORG_CODE		部门编码
	CODE			浪潮CODE
	blckhdz			办理窗口和地址
	flyj			法律依据
	sxcl			所需材料
	kbl				可在线办理
	kzxblsj			可在线办理时间
	*/
	
	private String sxmc;
	private String slfw;
	private String bljg;
	private String jdtsdh;
	private String sltj;
	private String blcx;
	private String lct;
	private String blsx;
	private String sfyj;
	private String sfbz;
	private String bgxz;
	private String wsbl;
	private String wscx;
	private String zxdh;
	private String blcs;
	private String itemId;
	private String CODE;
	private String ORG_CODE;
	private String blckhdz;
	private String flyj;
	private String sxcl;
	private String kbl;
	private String kzxblsj;
	private String ztfl;
	
	@Value("#{conf[downLoadUrl]}")
	private String downLoadUrl;//文件下载地址，对应浪潮网盘地址
	@Value("#{conf[filePath]}")
	private String filePath;//文件保存路径
	@Value("#{conf[fileUrl]}")
	private String fileUrl;//前端访问路径地址
	
	//导入数据必备字段
	private int objectId;
	private int channelId;
	
	public String getSxmc() {
		return sxmc;
	}
	public void setSxmc(String sxmc) {
		this.sxmc = sxmc;
	}
	public String getSlfw() {
		return slfw;
	}
	public void setSlfw(String slfw) {
		this.slfw = slfw;
	}
	public String getBljg() {
		return bljg;
	}
	public void setBljg(String bljg) {
		this.bljg = bljg;
	}
	public String getJdtsdh() {
		return jdtsdh;
	}
	public void setJdtsdh(String jdtsdh) {
		this.jdtsdh = jdtsdh;
	}
	public String getSltj() {
		return sltj;
	}
	public void setSltj(String sltj) {
		this.sltj = sltj;
	}
	public String getBlcx() {
		return blcx;
	}
	public void setBlcx(String blcx) {
		this.blcx = blcx;
	}
	public String getLct() {
		return lct;
	}
	public void setLct(String lct) {
		this.lct = lct;
	}
	public String getBlsx() {
		return blsx;
	}
	public void setBlsx(String blsx) {
		this.blsx = blsx;
	}
	public String getSfyj() {
		return sfyj;
	}
	public void setSfyj(String sfyj) {
		this.sfyj = sfyj;
	}
	public String getSfbz() {
		return sfbz;
	}
	public void setSfbz(String sfbz) {
		this.sfbz = sfbz;
	}
	public String getBgxz() {
		return bgxz;
	}
	public void setBgxz(String bgxz) {
		this.bgxz = bgxz;
	}
	public String getWsbl() {
		return wsbl;
	}
	public void setWsbl(String wsbl) {
		this.wsbl = wsbl;
	}
	public String getWscx() {
		return wscx;
	}
	public void setWscx(String wscx) {
		this.wscx = wscx;
	}
	public String getZxdh() {
		return zxdh;
	}
	public void setZxdh(String zxdh) {
		this.zxdh = zxdh;
	}
	public String getBlcs() {
		return blcs;
	}
	public void setBlcs(String blcs) {
		this.blcs = blcs;
	}
	public String getItemId() {
		return itemId;
	}
	public void setItemId(String itemId) {
		this.itemId = itemId;
	}
	public String getORG_CODE() {
		return ORG_CODE;
	}
	public void setORG_CODE(String oRG_CODE) {
		ORG_CODE = oRG_CODE;
	}
	public String getBlckhdz() {
		return blckhdz;
	}
	public void setBlckhdz(String blckhdz) {
		this.blckhdz = blckhdz;
	}
	public String getFlyj() {
		return flyj;
	}
	public void setFlyj(String flyj) {
		this.flyj = flyj;
	}
	public String getSxcl() {
		return sxcl;
	}
	public void setSxcl(String sxcl) {
		this.sxcl = sxcl;
	}
	public String getKbl() {
		return kbl;
	}
	public void setKbl(String kbl) {
		this.kbl = kbl;
	}
	public String getKzxblsj() {
		return kzxblsj;
	}
	public void setKzxblsj(String kzxblsj) {
		this.kzxblsj = kzxblsj;
	}
	public int getObjectId() {
		return objectId;
	}
	public void setObjectId(int objectId) {
		this.objectId = objectId;
	}
	public int getChannelId() {
		return channelId;
	}
	public void setChannelId(int channelId) {
		this.channelId = channelId;
	}
	public String getCODE() {
		return CODE;
	}
	public void setCODE(String cODE) {
		CODE = cODE;
	}
	
	public String getDownLoadUrl() {
		return downLoadUrl;
	}
	public void setDownLoadUrl(String downLoadUrl) {
		this.downLoadUrl = downLoadUrl;
	}
	public String getFilePath() {
		return filePath;
	}
	@Value("#{settings[conf.filepath]}")
	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}
	public String getFileUrl() {
		return fileUrl;
	}
	@Value("#{settings[conf.fileUrl]}")
	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}
	public String getZtfl() {
		return ztfl;
	}
	public void setZtfl(String ztfl) {
		this.ztfl = ztfl;
	}
	@Override
	public String toString() {
		return String.format(
				"XZSP [sxmc=%s, slfw=%s, bljg=%s, jdtsdh=%s, sltj=%s, blcx=%s, lct=%s, blsx=%s, sfyj=%s, sfbz=%s, bgxz=%s, wsbl=%s, wscx=%s, zxdh=%s, blcs=%s, itemId=%s, CODE=%s, ORG_CODE=%s, blckhdz=%s, flyj=%s, sxcl=%s, kbl=%s, kzxblsj=%s, ztfl=%s, downLoadUrl=%s, filePath=%s, fileUrl=%s, objectId=%s, channelId=%s]",
				sxmc, slfw, bljg, jdtsdh, sltj, blcx, lct, blsx, sfyj, sfbz, bgxz, wsbl, wscx, zxdh, blcs, itemId, CODE,
				ORG_CODE, blckhdz, flyj, sxcl, kbl, kzxblsj, ztfl, downLoadUrl, filePath, fileUrl, objectId, channelId);
	}
	
}
